//
//  FeedBackViewController.m
//  MyNewProject
//
//  Created by 王春辉 on 2020/1/2.
//  Copyright © 2020年 sun. All rights reserved.
//

#import "FeedBackViewController.h"

@interface FeedBackViewController ()
@property (nonatomic, strong) UITextView *textView;
@end

@implementation FeedBackViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.gk_navTitle = @"意见反馈";
    self.view.backgroundColor = SKColorWithHex(0xF7F7F7);
    [self.textView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(15);
        make.top.mas_offset(SKTopBar_Height + 15);
        make.right.mas_offset(-15);
        make.height.mas_equalTo(self.textView.mas_width).multipliedBy(200.0/245);
    }];
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:@"提  交" forState:UIControlStateNormal];
    [button setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
    button.titleLabel.font = SKFONT_BOLD_SIZE(18);
    button.backgroundColor = SKColorWithHex(0xE33030);
    [button addTarget:self action:@selector(buttonClick:) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:button];
    
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_offset(15);
        make.right.mas_offset(-15);
        make.bottom.mas_offset(-SKBottomSafe_Height - 80);
        make.height.mas_equalTo(button.mas_width).multipliedBy(49.0/343);
    }];
    
}

#pragma mark -- mark 懒加载
- (UITextView *)textView {
    if (!_textView) {
        _textView = [[UITextView alloc] init];
        _textView.backgroundColor = [UIColor whiteColor];
        _textView.contentInset = UIEdgeInsetsMake(10, 10, 10, 10);
        _textView.font = SKFONT_SIZE(14);
        _textView.textColor = SKColorWithHex(0x999999);
        _textView.text = @"请输入您的建议";
        [self.view addSubview:_textView];
    }
    return _textView;
}

#pragma mark -- mark EVNET

- (void)buttonClick:(UIButton *)sender {
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
